import axios from '../axios'

/*
 * oem卡模块
 */

// 新增
export const save = (data) => {
  return axios({
    url: '/oemInfo/saveOemInfo',
    method: 'post',
    data
  })
}
// 删除
export const batchDelete = (params) => {
  return axios({
    url: '/oemInfo/deleteOemInfo',
    method: 'post',
    params
  })
}
// 批量删除
export const handleBatchDelete = (params) => {
  return axios({
    url: '/oemInfo/batchDeleteOemInfo',
    method: 'post',
    params
  })
}
//编辑
export const edit = (data) => {
  return axios({
    url: '/oemInfo/updateOemInfo',
    method: 'post',
    data
  })
}
//分配
export const distribution = (data) => {
  return axios({
    url: '/oemInfo/oemAssign',
    method: 'post',
    data
  })
}
// 分页查询
export const findPage = (params) => {
  return axios({
    url: '/oemInfo/queryInfoList',
    method: 'get',
    params
  })
}
// 按条件查询
export const search = (params) => {
  return axios({
    url: '/oemInfo/queryInfoById',
    method: 'get',
    params
  })
}
// 导出
export const exportOem = (params) => {
  return axios({
    url: '/oemInfo/exportOemInfo',
    method: 'get',
    params
  })
}
// 下载模板
export const download = () => {
  return axios({
    url: '/oemInfo/downExcelModel',
    method: 'get',
  })
}
//导入
export const importOem = (params) => {
  return axios({
    url: '/oemInfo/batchImportOemInfo',
    method: 'post',
    params
  })
}
// 查询学校下拉列表
export const schoolList = (params) => {
  return axios({
    url: '/schoolDict/queryList',
    method: 'get',
    params
  })
}
// 批量导入更新
export const batchUpdateInfo = (data) => {
  return axios({
    url: '/oemInfo/batchUpdateInfo',
    method: 'post',
    data
  })
}

